package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.GcProjectQtfy;
import com.ruoyi.gcgl.mapper.GcProjectQtfyMapper;
import com.ruoyi.gcgl.service.IGcProjectQtfyService;

/**
 * 一般性费用Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class GcProjectQtfyServiceImpl implements IGcProjectQtfyService 
{
    @Autowired
    private GcProjectQtfyMapper gcProjectQtfyMapper;

    /**
     * 查询一般性费用
     * 
     * @param id 一般性费用主键
     * @return 一般性费用
     */
    @Override
    public GcProjectQtfy selectGcProjectYbfyById(Long id)
    {
        return gcProjectQtfyMapper.selectGcProjectYbfyById(id);
    }

    /**
     * 查询一般性费用列表
     * 
     * @param gcProjectYbfy 一般性费用
     * @return 一般性费用
     */
    @Override
    public List<GcProjectQtfy> selectGcProjectYbfyList(GcProjectQtfy gcProjectYbfy)
    {
        return gcProjectQtfyMapper.selectGcProjectYbfyList(gcProjectYbfy);
    }

    /**
     * 新增一般性费用
     * 
     * @param gcProjectYbfy 一般性费用
     * @return 结果
     */
    @Override
    public int insertGcProjectYbfy(GcProjectQtfy gcProjectYbfy)
    {
        return gcProjectQtfyMapper.insertGcProjectYbfy(gcProjectYbfy);
    }

    /**
     * 修改一般性费用
     * 
     * @param gcProjectYbfy 一般性费用
     * @return 结果
     */
    @Override
    public int updateGcProjectYbfy(GcProjectQtfy gcProjectYbfy)
    {
        return gcProjectQtfyMapper.updateGcProjectYbfy(gcProjectYbfy);
    }

    /**
     * 批量删除一般性费用
     * 
     * @param ids 需要删除的一般性费用主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectYbfyByIds(String ids)
    {
        return gcProjectQtfyMapper.deleteGcProjectYbfyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除一般性费用信息
     * 
     * @param id 一般性费用主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectYbfyById(Long id)
    {
        return gcProjectQtfyMapper.deleteGcProjectYbfyById(id);
    }
}
